﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cash_machine_2012
{
    public partial class CashAmount :Form
    {
        Amount am = new Amount();
        

        public CashAmount()
        {
            InitializeComponent();
          
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
           switch (am.Get_money())
           {
               case 5:
                      textBox1.Text = "5";
                     //  pictureBox1.Image = Image.FromFile("pictures/5d.jpg");
                       break;
               case 10:
                       textBox1.Text = "10";
                  //     pictureBox1.Image = Image.FromFile("pictures/5d.jpg");
                       break;
               case 50:
                       textBox1.Text = "50";
                    //   pictureBox1.Image = Image.FromFile("pictures/5d.jpg");
                       break;
               default:
                       MessageBox.Show("error");
                       break;
           }






       

        }
    }
}
